home *** CD-ROM | disk | FTP | other *** search
/ Micromanía: 150 Juegos 2010 / 150Juegos_16.iso / Shareware / Shape Smash / shape-smash.swf / scripts / Code / LIB / _rs402.as < prev    next >
Encoding:
Text File  |  2010-05-14  |  2.3 KB  |  92 lines

  1. package Code.LIB
  2. {
  3.    import flash.display.Stage;
  4.    
  5.    public class _rs402
  6.    {
  7.       private static var iURL:String;
  8.       
  9.       public static var prStage:Stage;
  10.       
  11.       private static var iDx:Number;
  12.       
  13.       private static var iDy:Number;
  14.       
  15.       private static var iScale:Number = 1;
  16.       
  17.       public static var iNative:Boolean = false;
  18.       
  19.       public static var iDebug:Boolean = false;
  20.       
  21.       public static var showMochi:Boolean = false;
  22.       
  23.       public static var lives:int = 0;
  24.       
  25.       public function _rs402()
  26.       {
  27.          super();
  28.       }
  29.       
  30.       public static function get _jw148() : String
  31.       {
  32.          return iURL;
  33.       }
  34.       
  35.       public static function set _jw148(param1:String) : void
  36.       {
  37.          var _loc2_:String = null;
  38.          var _loc3_:Array = null;
  39.          iURL = param1.substring(0,29);
  40.          _loc2_ = param1.slice(0,param1.length);
  41.          _loc2_.toLowerCase();
  42.          _loc3_ = _loc2_.split("/");
  43.          iNative = true;
  44.          if(_loc2_.indexOf("http://") == 0 || _loc2_.indexOf("https://") == 0)
  45.          {
  46.             iNative = false;
  47.          }
  48.       }
  49.       
  50.       public static function get _oy577() : Number
  51.       {
  52.          return iScale;
  53.       }
  54.       
  55.       public static function get _ru276() : Number
  56.       {
  57.          return iDx / _oy577;
  58.       }
  59.       
  60.       public static function _fl766(param1:Number, param2:Number) : void
  61.       {
  62.          iDx = param1;
  63.          iDy = param2;
  64.       }
  65.       
  66.       public static function _be412() : void
  67.       {
  68.          var _loc1_:Number = NaN;
  69.          var _loc2_:Number = NaN;
  70.          var _loc3_:Number = NaN;
  71.          var _loc4_:Number = NaN;
  72.          _loc1_ = prStage.stageWidth;
  73.          _loc2_ = prStage.stageHeight;
  74.          _loc3_ = _loc1_ / 640;
  75.          _loc4_ = _loc2_ / 480;
  76.          iScale = _loc3_ < _loc4_ ? _loc3_ : _loc4_;
  77.          if(iScale > 3)
  78.          {
  79.             iScale = 3;
  80.          }
  81.          _fl766((_rs402.prStage.stageWidth - 640 * _oy577) / 2,(_rs402.prStage.stageHeight - 480 * _oy577) / 2);
  82.          trace("scale: ",_rs402._oy577);
  83.       }
  84.       
  85.       public static function get _ob68() : Number
  86.       {
  87.          return iDy / _oy577;
  88.       }
  89.    }
  90. }
  91.  
  92.